﻿    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Runtime.Serialization;

    namespace University.Workshop.Model
    {
        [Serializable]
        public class BusinessException : Exception
        {
            public BusinessException()
            {
            }

            protected BusinessException(SerializationInfo info, StreamingContext context)
                : base(info, context)
            {

            }

            public BusinessException(string msg)
                : base(msg)
            {

            }

            public BusinessException(string msg, Exception inner)
                : base(msg)
            {
                if (inner == null)
                {
                    throw new BusinessException("exception null");
                }
                else
                    inner.Source = msg;
            }

        }
    }


